package com.zhang.zxx.springboot.admin.api;

import lombok.SneakyThrows;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TestApi:
 *
 * @author zhangxiaoxiang
 * @date 2021/10/02
 */
@RestController("/test")
public class TestApi {
    @SneakyThrows
    @PostMapping("/timeout")
    public String timeout(){
        System.out.println("请求接口");
        Thread.sleep(40000);
        System.out.println("模拟延迟结束");
        return "OK";
    }
}
